<template>
	<div class="parentDiv">
		<div id="about div1">
			<div class="item_one_div">
				<div class="one">
					<span>〈</span>
					<span>确认订单</span>
				</div>
				<div class="item_div" v-for="item in addressList">
					<div class="item_top_div">
						<span>{{item.Name}}</span>
						<span>{{item.Tel}}</span>
					</div>
					<div class="item_bottom_div">
						<div class="item_bottom_left_div">
							<p>{{item.address}}</p>
						</div>
						<router-link to="/EditAddress">
							<img v-for="url in item.img" :src="url" />
						</router-link>
					</div>
				</div>
			</div>
			<div class="item_div1" v-for="item in dataList">
				<div class="item_top_div1">
					<span>{{item.shopName}}</span>
				</div>
				<div class="item_bottom_div1" v-for="item1 in item.datalist">
					<div class="item_bottom_left_div1">
						<div class="item_bottom_left_one_div1">
							<img :src="item1.imgs" />
						</div>
						<div class="item_bottom_left_two_div1">
							<p>{{item1.guige}}</p>
							<p>￥{{item1.price}} x {{item1.num}}</p>
						</div>
					</div>
					<div class="item_bottom_right_div1">
						<p>￥{{item1.zong}}</p>
					</div>
				</div>
				<div class="item_bottom_bottom_div1">
					共计3件/1.4kg ﹀
				</div>
			</div>
			<div class="bottom_div">
				<div class="tab_div"> <span>实付金额￥62
					</span><button>提交订单</button> </div>
			</div>
		</div>
		<div class="item_two_div" id="div2">
			<div class="item_div_box">
				<div class="tishi_div">
					<p>确认要离开收银台？</p>
					<p>请尽快完成支付，否则将被取消</p>
				</div>
				<div class="item_div_but">
					<button @click="quxiao">取消订单</button>
					<button @click="queren">确认支付</button>
				</div>
			</div>
		</div>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				addressList: [{
					"Name": "小慕",
					Tel: 18911023261,
					"address": "北京海淀区西三环北路 2号院 北京理工大学 国防科技园2号楼 10层",
					img: [require("../assets/orders/D70CE988-F9F8-4e9e-963E-07C692733DE8.png")]
				}],
				dataList: [{
					"shopName": "沃尔玛",
					datalist: [{
						"guige": "番茄250g/份",
						imgs: require("../assets/orders/icon_order.png"),
						price: 33.6,
						num: 3,
						zong: 99.9
					}, {
						"guige": "提子250g/份",
						imgs: require("../assets/orders/icon_order.png"),
						price: 33.6,
						num: 3,
						zong: 99.9
					}]
				}, ]
			}
		},
		methods: {
			quxiao() {
				this.$router.push('/myorder');
			},
			queren() {
				this.$router.push('/payorder');
			}
		}
	}
</script>
<style>
	/* 单独给页面设置背景色 */
	* {
		margin: 0;
		padding: 0;
	}

	.cuo {
		position: absolute;
		right: 0;
		top: 0;
	}

	.item_div_but {
		text-align: center;
	}

	.item_div_but :nth-child(1) {
		border: 1px solid #4FB0F9;
		border-radius: 16px;
		height: 32px;
		width: 80px;
		margin-top: 24px;
		margin-left: 12px;
		margin-right: 12px;
		font-family: PingFangSC-Regular;
		font-size: 14px;
		color: #0091FF;
	}

	.item_div_but :nth-child(2) {
		background: #4FB0F9;
		border: 1px solid #4FB0F9;
		border-radius: 16px;
		height: 32px;
		width: 80px;
		margin-top: 24px;
		margin-left: 12px;
		margin-right: 12px;
		font-family: PingFangSC-Regular;
		font-size: 14px;
		color: #FFFFFF;
	}

	.tishi_div {
		text-align: center;
	}

	.tishi_div :nth-child(1) {
		padding-top: 24px;
		font-family: PingFangSC-Medium;
		font-size: 18px;
		color: #333333;
	}

	.tishi_div :nth-child(2) {
		padding-top: 8px;
		font-family: PingFangSC-Regular;
		font-size: 14px;
		color: #666666;
	}

	.item_div_box {
		height: 157px;
		margin-top: 243px;
		margin-left: 37px;
		margin-right: 37px;
		background: #FFFFFF;
		border-radius: 4px;
	}

	.item_two_div {
		background: rgba(0, 0, 0, 0.50);
		align-items: center;
	}

	.parentDiv {
		position: relative;
	}

	#div1 {
		position: absolute;
		z-index: 1;
	}

	#div2 {
		position: absolute;
		z-index: 2;
		top: 0px;
		left: 0;
		height: 189%;
		width: 100%;
	}

	#about {
		background-color: #f8f8f8;
		height: 100%;
		position: fixed;
		width: 100%;
	}

	.item_one_div {
		background-image: linear-gradient(0deg, rgba(0, 145, 255, 0.00) 4%, #0091FF 50%);
	}

	.one {
		height: 44px;
		width: 100%;
		line-height: 44px;
		display: flex;
		align-items: center;
	}

	.one :nth-child(1) {
		font-size: 15px;
		color: #B6B6B6;
		padding-left: 19px;
	}

	.one :nth-child(2) {
		text-align: center;
		font-size: 16px;
		flex: 1
	}

	.title_div {
		height: 44px;
		font-size: 16px;
		color: #333333;
		background-image: linear-gradient(0deg, rgba(0, 145, 255, 0.00) 4%, #0091FF 50%);
		height: 200px;
		border-bottom-right-radius: 40%;
		border-bottom-left-radius: 40%;
		line-height: 44px;
		text-align: center;
	}

	.item_div {
		background: #FFFFFF;
		margin-top: 16px;
		margin-left: 18px;
		margin-right: 18px;
		border-radius: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 16px;
	}

	.item_div .item_top_div {
		height: 54px;
		line-height: 54px;
		display: flex;
		justify-content: space-between;
	}

	.item_div .item_top_div :nth-child(1) {
		font-size: 16px;
		color: #333333;
	}

	.item_div .item_top_div :nth-child(2) {
		font-size: 14px;
		color: #999999;
		padding-right: 120px;
	}

	.item_bottom_div {
		display: flex;
		justify-content: space-between;
	}

	.item_div {
		background: #FFFFFF;
		margin-top: 16px;
		margin-left: 18px;
		margin-right: 18px;
		border-radius: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 16px;
	}

	.item_div .item_top_div {
		height: 54px;
		line-height: 54px;
		display: flex;
		justify-content: space-between;
	}

	.item_div .item_top_div :nth-child(1) {
		font-size: 16px;
		color: #333333;
	}

	.item_div1 {
		background: #FFFFFF;
		margin-bottom: 16px;
		margin-left: 18px;
		margin-right: 18px;
		border-radius: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 16px;
		margin-top: 16px;
	}

	.item_bottom_div1 {
		margin-bottom: 16px;
	}

	.item_bottom_bottom_div1 {
		margin-top: 16px;
		margin-left: 16px;
		margin-right: 16px;
		height: 28px;
		background: #F5F5F5;
		text-align: center;
		font-family: PingFangSC-Light;
		font-size: 14px;
		color: #999999;
		line-height: 28px;
	}

	.item_div1 .item_top_div1 {
		height: 54px;
		line-height: 54px;
		display: flex;
		justify-content: space-between;
	}

	.item_bottom_left_div1 {
		display: flex;
		justify-content: space-between;
	}

	.item_bottom_left_two_div1 :nth-child(1) {
		margin-bottom: 6px;
	}

	.item_div1 .item_top_div1 :nth-child(1) {
		font-size: 16px;
		color: #333;
	}

	.item_div1 .item_top_div1 :nth-child(2) {
		font-size: 14px;
		color: #999;
	}

	.item_div1 .item_bottom_div1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.item_div1 .item_bottom_div1 .item_bottom_left_div1 .item_bottom_left_one_div1 img {
		width: 46px;
		height: 46px;
		margin-right: 16px;
	}

	.item_div1 .item_bottom_div1 .item_bottom_left_div1 .item_bottom_left_two_div1 :nth-child(1) {
		font-family: PingFangSC-Medium;
		font-size: 14px;
		color: #333333;
		text-align: left;
	}

	.item_div1 .item_bottom_div1 .item_bottom_left_div1 .item_bottom_left_two_div1 :nth-child(2) {
		font-size: 14px;
		color: #E93B3B;
		margin-bottom: 2px;
	}

	.item_div1 .item_bottom_div1 .item_bottom_right_div1 :nth-child(1) {
		font-family: PingFangSC-Regular;
		font-size: 14px;
		color: #000000;
		text-align: right;
	}

	.bottom_div {
		background: white;
		height: 49px;
		position: fixed;
		bottom: 0;
		width: 100%;
		display: flex;
		text-align: center;
	}

	.bottom_div .tab_div {
		flex: 1;
		align-items: center;
		text-align: start;
		height: 49px;
		margin-left: 24px;
	}

	.tab_div button {
		line-height: 49px;
		background: #4FB0F9;
		color: white;
		border: none;
		border-radius: 4px;
		text-align: center;
		width: 98px;
		position: absolute;
		right: 0;
		bottom: 0;
	}

	.tab_div span {
		font-size: 14px;
		color: #333333;
		line-height: 48px;
		padding-left: 24px;
	}
</style>
